<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/18
 * Time: 17:08
 */
//
include_once "/View.class.php";
class Controller {
    public $view;
    public function __construct($controllerName, $action) {
        include_once APP_PATH . "/application/models/" . $controllerName . "Model.php";
        $this->view = new View($controllerName, $action);
    }

    public function assign($key, $value) {
        $this->view->assign($key, $value);
    }

    public function fetch() {
        $this->view->fetch();
    }
}